body {
  min-width: 320px;
  width: 10rem;
  margin: 0 auto;
  line-height: 1.5;
  font-family: Arial, Helvetica, STHeiTi, sans-serif;
  background: #F2F2F2;
}

@media screen and (max-width: 320px) {
  html {
    font-size: 32px !important;
  }
}

@media screen and (min-width: 750px) {
  html {
    font-size: 75px !important;
  }
}

.top-banner {
  width: 10rem;
  height: 1.333rem;
  background: url("../images/top_banner.jpg");
  background-size: 100% 100%;
  position: relative;

  .close {
    width: 0.4rem;
    height: 0.4rem;
    position: absolute;
    left: 0.2rem;
    top: 0.467rem;
  }
}

header {
  width: 10rem;
  height: 2.4rem;
  background: #FFDB47;

  .header-top {
    width: 9.093rem;
    height: 1.173rem;
    padding: 0 0.453rem;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .classify, .login {
      display: block;
      width: 0.48rem;
      height: 0.8rem;
    }

    .ad {
      display: block;
      width: 6rem;
      height: 1.013rem;
    }
  }

  .search {
    width: 9.36rem;
    height: 1.173rem;
    margin: 0 0.32rem;
    position: relative;

    i {
      display: block;
      width: 0.48rem;
      height: 0.48rem;
      background: url("../images/search_btn.png") no-repeat;
      background-size: 100% 100%;
      position: absolute;
      left: 0.133rem;
      top: 0.347rem;
    }

    input {
      width: 9.36rem;
      height: 0.853rem;
      line-height: 0.853rem;
      font-size: 0.56rem;
      border: 0;
      border-radius: 0.427rem;
      padding: 0 0.267rem 0 0.667rem ;
      margin-top: 0.093rem;
      box-sizing: border-box;
    }
  }
}

.banner {
  width: 10rem;
  height: 3.467rem;
  background: url("../images/banner_bg.png") no-repeat;
  background-size: 100% auto;

  .wrapper {
    width: 9.36rem;
    height: 3.467rem;
    margin: 0 auto;
    overflow: hidden;

    ul {
      margin: 0;
      list-style: none;
      width: 28.133rem;
      height: 3.467rem;
      position: relative;

      li {
        width: 9.36rem;
        height: 3.467rem;
        position: absolute;
        left: 9.36rem;
        top: 0;

        &.current {
          left: 0;
        }

        img {
          width: 9.36rem;
          height: 3.467rem;
          border-radius: 0.267rem;
        }
      }
    }
  }
}

nav {
  width: 10rem;
  //height: 308px;

  a {
    width: 2rem;
    height: 1.893rem;
    float: left;

    img {
      width: 1.12rem;
      height: 1.12rem;
      margin: 0.32rem 0.44rem 0;
      display: block; // 不知道为什么没这一句，布局会出问题
    }

    p {
      text-align: center;
      font-size: 0.267rem;
      color: #666;
      height: 0.373rem;
      line-height: 0.373rem;
      margin-top: 0.067rem;
    }
  }
}
